package cn.tedu.hongbeifang.service;

import cn.tedu.hongbeifang.pojo.dto.CommentAddNewDTO;
import cn.tedu.hongbeifang.pojo.vo.CommentIndexVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Auther:fzd
 * @Date:2023/3/23
 */
@Transactional
public interface ICommentService {
    void insert(CommentAddNewDTO commentAddNewDTO);

    List<CommentIndexVO> select();

    List<CommentIndexVO> selectByInfoId(Long InfoId);

    void deleteByUserId(Long id,Long userId);

    void deleteById(Long id);

    void deleteByInfoId(Long infoId);

}
